#ifndef UDPFILERCLIENT_H
#define UDPFILERCLIENT_H

#include <QWidget>
#include <QUdpSocket>
#include <QStringListModel>
#include <QFileDialog>

namespace Ui {
class UdpFilerClient;
}

class UdpFilerClient : public QWidget
{
    Q_OBJECT

public:
    explicit UdpFilerClient(QWidget *parent = nullptr);
    ~UdpFilerClient();
    void Init();
    void InitConnections();
    void SendData();
    void OpenFile();
private:
    Ui::UdpFilerClient *ui;
    QUdpSocket* m_pClient;
    QStringListModel* m_pModel;
    qint64 m_totalBytes;
    qint64 m_bytesWritten;
    qint64 m_bytesToWrite;
    QByteArray m_outBlock;
};

#endif // UDPFILERCLIENT_H
